


import java.awt.Rectangle;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class MainWindowGUI extends JFrame
{
	private JButton searchButton = null;
	private JButton feedBackButton = null;
	private JButton buySubButton = null;
	private JButton addPhotoButton = null;
	private JButton produceRepButton = null;
	private JButton viewCompRepButton = null;
	private JButton p_regButton = null;
	private JButton p_subButton = null;
	private JButton u_compButton = null;
	private JPanel contentPane=null;	
	
	public MainWindowGUI()
	{
		super();
	    JPanel contentPane=new JPanel();
	
		
		   //Main Window panel 
	    contentPane.setLayout(null);
	    contentPane.setOpaque(true);
	    contentPane.add(getAddphotoButton());
	    contentPane.add(getSearchButton());   	
	    contentPane.add(getFeedbackButton());
	    contentPane.add(getBuysubButton()); 
	    contentPane.add(getProducerepButton());
	    contentPane.add( getViewcomprepButton());
	    contentPane.add(getP_regButton());
	    contentPane.add(getP_subButton());
	    contentPane.add(getU_compButton());		
	  

		  //Frame
	        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	        this.setTitle(" Main Window Window");
	        this.setContentPane(contentPane);  
		    this.setLocationRelativeTo(null); //This will center the JFrame in the middle of the screen
	        this.setLocationByPlatform(true);
	        this.setSize(472, 628);
	        this.setVisible( true ); // display frame
	
	}
	
	/**
	 * This method initializes Add Photo Button	
	 */
	private JButton getAddphotoButton() {
		if (addPhotoButton == null) {
			addPhotoButton = new JButton();
			addPhotoButton.setBounds(new Rectangle(114, 11, 200, 45));
			addPhotoButton.setText("Add Photo");
			addPhotoButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					
				 
				
				}
			});
		}
		return addPhotoButton;
	}
	
	/**
	 * This method initializes Search Photo Button	
	 */
	private JButton getSearchButton() {
		if (searchButton == null) {
			searchButton = new JButton();
			searchButton.setBounds(new Rectangle(114, 67, 200, 45));
			searchButton.setText("Search Photo");
			searchButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					
				 
				
				}
			});
		}
		return searchButton;
	}
	
	/**
	 * This method initializes Feedback Button	
	 */
	private JButton getFeedbackButton() {
		if (feedBackButton == null) {
			feedBackButton = new JButton();
			feedBackButton.setBounds(new Rectangle(114, 123, 200, 45));
			feedBackButton.setText("Feedback");
			feedBackButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
				}
			});
		}
		return feedBackButton;
	}
	
	
	/**
	 * This method initializes Produce Report Button	
	 */
	private JButton getProducerepButton() {
		if (produceRepButton == null) {
			produceRepButton = new JButton();
			produceRepButton.setBounds(new Rectangle(114, 256, 200, 45));
			produceRepButton.setText("Produce Report");
			produceRepButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					 
				}
			});
		}
		return produceRepButton;
	}
	
	/**
	 * This method initializes View/Compare Report Button	
	 */
	private JButton getViewcomprepButton() {
		if (viewCompRepButton == null) {
			viewCompRepButton = new JButton();
			viewCompRepButton.setBounds(new Rectangle(114, 312, 200, 45));
			viewCompRepButton.setText(" View/Compare Report");
			viewCompRepButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					 
				}
			});
		}
		return viewCompRepButton;
	}
	
	/**
	 * This method initializes Buy Subscription Button	
	 */
	private JButton getBuysubButton() {
		if (buySubButton == null) {
			buySubButton = new JButton();
			buySubButton.setBounds(new Rectangle(114, 190, 200, 45));
			buySubButton.setText("Buy Subscription");
			buySubButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					 
				}
			});
		}
		return buySubButton;
	}
	
	/**
	 * This method initializes Pending Registration Button	
	 */
	private JButton getP_regButton() {
		if (p_regButton == null) {
			p_regButton = new JButton();
			p_regButton.setBounds(new Rectangle(114, 383, 200, 45));
			p_regButton.setText("Display Pending Registration");
			p_regButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					
				 
				
				}
			});
		}
		return p_regButton;
	}
	
	
	/**
	 * This method initializes Pending Subscription Button	
	 */
	private JButton getP_subButton() {
		if (p_subButton == null) {
			p_subButton = new JButton();
			p_subButton.setBounds(new Rectangle(114, 439, 200, 45));
			p_subButton.setText("Display Pending Subscription");
			p_subButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
				}
			});
		}
		return p_subButton;
	}
	
	
	/**
	 * This method initializes Unhandled Complaints Button	
	 */
	private JButton getU_compButton() {
		if (u_compButton == null) {
			u_compButton = new JButton();
			u_compButton.setBounds(new Rectangle(114, 495, 210, 45));
			u_compButton.setText("Display Unhandled  Complaints");
			u_compButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					 
				}
			});
		}
		return u_compButton;
	}
	
		
	
}
